package com.xiangyun.auth.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class LoginController {
	
	
	@RequestMapping(value = "/login",method = RequestMethod.GET)
	public String login() {
		return "/login";
	}
	
	@RequestMapping(value = "/login" , method = RequestMethod.POST)
	@ResponseBody
	public String login(String username , String password , String phone , String email, String url,HttpServletRequest httpServletRequest,
			HttpServletResponse httpServletResponse) {
		return "登录成功";
	}
	
	@RequestMapping(value = "/loginSuccess")
	public String loginSuccess() {
		return "/login-success";
	}
	
	@RequestMapping(value = "/erro")
	public String erro() {
		return "/erro";
	}
	
}
